package com.xmy.erp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 订单价格记录
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-09
 */
@TableName("order_course_pricing")
@ApiModel(value = "OrderCoursePricing对象", description = "订单价格记录")
public class OrderCoursePricing implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id,与order_detail表id一致")
    private Long id;

    @ApiModelProperty("数量")
    private Integer count;

    @ApiModelProperty("单位")
    private String countUnit;

    @ApiModelProperty("单位价格")
    private BigDecimal unitPrice;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("服务器")
    private BigDecimal servePrice;

    @ApiModelProperty("材料费")
    private BigDecimal materialsPrice;

    @ApiModelProperty("总费用=价格+服务费+材料费")
    private BigDecimal allPrice;

    @ApiModelProperty("收费模式，1按课时收费，2按时间收费，3按期收费")
    private Integer chargeMode;

    private Integer deleted;

    private Integer version;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
    public String getCountUnit() {
        return countUnit;
    }

    public void setCountUnit(String countUnit) {
        this.countUnit = countUnit;
    }
    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }
    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    public BigDecimal getServePrice() {
        return servePrice;
    }

    public void setServePrice(BigDecimal servePrice) {
        this.servePrice = servePrice;
    }
    public BigDecimal getMaterialsPrice() {
        return materialsPrice;
    }

    public void setMaterialsPrice(BigDecimal materialsPrice) {
        this.materialsPrice = materialsPrice;
    }
    public BigDecimal getAllPrice() {
        return allPrice;
    }

    public void setAllPrice(BigDecimal allPrice) {
        this.allPrice = allPrice;
    }
    public Integer getChargeMode() {
        return chargeMode;
    }

    public void setChargeMode(Integer chargeMode) {
        this.chargeMode = chargeMode;
    }
    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "OrderCoursePricing{" +
            "id=" + id +
            ", count=" + count +
            ", countUnit=" + countUnit +
            ", unitPrice=" + unitPrice +
            ", price=" + price +
            ", servePrice=" + servePrice +
            ", materialsPrice=" + materialsPrice +
            ", allPrice=" + allPrice +
            ", chargeMode=" + chargeMode +
            ", deleted=" + deleted +
            ", version=" + version +
        "}";
    }
}
